package com.cheesmo.nzb.model.impl;

import java.util.ArrayList;
import java.util.List;

import com.cheesmo.nzb.model.File;
import com.cheesmo.nzb.model.NZB;

public class NZBImpl
		implements NZB
{
	private List<File> files = null;

	public NZBImpl() {
		this.files = new ArrayList<File>();
	}

	public List<File> getFiles() {
		return this.files;
	}

	public void addFile(File file) {
		this.files.add(file);
	}

	public String toString()
	{
		String toReturn = "[NZB]";
		for (int i = 0; i < this.files.size(); i++) {
			toReturn = toReturn + "\n\t" + this.files.get(i);
		}
		return toReturn;
	}
}
